C Filter for Rc5

نویسندگان

  • M. Matsui
  • R. L. Rivest
چکیده

In this appendix we present an eecient implementation of the lter described in Section 3.1. One must place ciphertext diierences after (2r ?1)th round (one half-round before the last half-round) into DLevel + 1] and DLevel] before calling the lter. These diierences can be calculated (for RC5) from the known ciphertext diierences and the known rotation amount of the last round. A call to the lter function looks like: GoUP(Level). typedef unsigned long int WORD; /* 32-bit for RC5-XOR-32/12/16 */ #define Level 7 /* Depth of search */ int FibbLevel+1] = {1,2,3,5,8,13,13,13}; /* Fib. cuts for a search tree */ WORD DDLevel+1]; /* Array of differences */ int count = 0; /* Number of variants */ unsigned int HAM(); /* Returns Hamming weight */ WORD ROTR(); /* Rotation to the right */ /* This function carries out filtration of good pairs for RC5-XOR by checking*/ /* the structure of the Fibonacci weight sequence of the particular pair. */ int GoUP(depth) /* Returns 1 if the pair is good*/ int depth; /* Depth of recursion */ { int i,s, flag= 0; if (HAM(DDdepth]) > Fibbdepth]) return(0); /* Cut the search tree */ if(depth!=0) for(s=0; s<32; s++) /* Try all rotations 0..31 */ if(((ROTR(DDdepth+1],s)) &0x1F)==0){ DDdepth-1] = ROTR(DDdepth+1],s)^DDdepth]; if(GoUP(depth-1)) /* Recursive call */ flag=1; /* For correct count of variants*/ } else { count++; /* Accumulate num. of variants */ return(1); } return(flag); } This article was processed using the L a T E X macro package with LLNCS style /* Construct all Fibonacci sequences with up to mc corrections

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The RC5 Encryption Algorithm

This document describes the RC5 encryption algorithm, a fast symmetric block cipher suitable for hardware or software implementations. A novel feature of RC5 is the heavy use of data-dependent rotations. RC5 has a variable word size, a variable number of rounds, and a variable-length secret key. The encryption and decryption algorithms are exceptionally simple.

متن کامل

On Differential and Linear Crytoanalysis of the RC5 Encryption Algorithm

This paper analyzes the security of the RC5 encryption algorithm against differential and linear cryptanalysis. RC5 is a new block cipher recently designed by Ron Rivest. It has a variable word size, a variable number of rounds, and a variable-length secret key. In RC5, the secret key is used to fill an expanded key table which is then used in encryption. Both our differential and linear attack...

متن کامل

Modified Cryptanalysis of RC5

The RC5 encryption algorithm was designed by Roland Rivest in 1994. Since its publication, RC5 has attracted the attention of many researchers in the cryptographic community in efforts to accurately assess the security offered. The best previously known attack requires 2 chosen plaintexts in order to derive the full set of 25 subkeys for the 12 round RC5 with 32 bit words. In this paper, we mod...

متن کامل

Improved Correlation Attack on RC5

Various attacks against RC5 have been analyzed intensively([1], [2], [4]–[7]). A known plaintext attack([2]) has not been reported that it works on so higher round as a chosen plaintext attack([1]), but it can work more efficiently and practically. In this paper we investigate a known plaintext attack against RC5 by improving a correlation attack ([7]). As for a known plaintext attack against R...

متن کامل

Improved Differential Attacks on RC5

In this paper we investigate the strength of the secret-key algorithm RC5 newly proposed by Ron Rivest. The target version of RC5 works on words of 32 bits, has 12 rounds and a user-selected key of 128 bits. At Crypto'95 Kaliski and Yin estimated the strength of RC5 by diierential and linear cryptanalysis. They conjectured that their linear analysis is optimal and that the use of 12 rounds for ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1998